package com.ld.collegetask.beans;

import android.app.Activity;
import android.content.Intent;
import android.view.View;

import com.ld.collegetask.OrderMemberInfoActivity;

/**
 * Created by 樊海波 on 2017/9/20.
 */

public class SexBean{

    private Integer sexId;
    private String sexName;

    public void click(View view) {
        Activity mActivity = (Activity)view.getContext();
        Intent it = new Intent(mActivity, OrderMemberInfoActivity.class);
        it.putExtra("sexId", sexId);
        it.putExtra("sexName", sexName);
        mActivity.setResult(1,it);
        mActivity.finish();
    }

    public SexBean(Integer sexId, String sexName) {
        this.sexId = sexId;
        this.sexName = sexName;
    }

    public Integer getSexId() {
        return sexId;
    }

    public void setSexId(Integer sexId) {
        this.sexId = sexId;
    }

    public String getSexName() {
        return sexName;
    }

    public void setSexName(String sexName) {
        this.sexName = sexName;
    }
}
